<?php
/**
 * Joomla! 1.5 component JoomGPSTracks
 *
 * @version $Id: form.php 2009-08-20 15:40:19 svn $
 * @author Michael Pfister
 * @package joomGPStracks
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// toolbar
JToolBarHelper::title(JText::_('GPS_EDIT_COMMENT'), 'addedit.png');
JToolBarHelper::back($alt= 'Back', $href= 'javascript:history.back();');
JToolBarHelper::spacer();
JToolBarHelper::save('saveComment', 'Save', 'save.png' );
?>
<form class="adminForm" name="adminForm" id="adminForm" method="post" action="">
    <table class="adminlist">
        <thead>
        <tr>
            <th colspan="2"><?php echo JText::_('GPS_EDIT_COMMENT'); ?></th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><?php echo JText::_('user'); ?></td>
            <td><input type="text" name="user" value="<?php echo $this->comment->user; ?>" size="30" readonly="readonly" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('email'); ?></td>
            <td><input type="text" name="email" value="<?php echo $this->comment->email; ?>" size="30" readonly="readonly" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('title'); ?></td>
            <td><input type="text" name="title" value="<?php echo $this->comment->title; ?>" size="30" /></td>
        </tr>
        <tr>
            <td><?php echo JText::_('text'); ?></td>
            <td><?php echo $this->editor->display( 'text', $this->comment->text , '500', '200', '100', '50', true ) ; ?></td>
        </tr>
        </tbody>
    </table>
    <?php
    echo JHTML::_( 'form.token' ); ?>
    <input type="hidden" name="option" value="com_joomgpstracks" />
    <input type="hidden" name="controller" value="comments" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="id" value="<?php echo $this->comment->id; ?>" />
</form>
